/**
 * 
 */
package design_pattern.facade.security;

/**
 * 没有使用门面模式的情况下编写的
 * 
 * @author linzq
 * 
 */
public class Client {

  static Camera camera1, camera2;
  static Light light1, light2, light3;
  static Sensor sensor1, sensor2;
  static Alarm alarm1;

  public static void main(String[] args) {
    camera1 = new Camera();
    camera2 = new Camera();
    light1 = new Light();
    light2 = new Light();
    light3 = new Light();
    sensor1 = new Sensor();
    sensor2 = new Sensor();
    alarm1 = new Alarm();
    camera1.turnOn();
    camera2.turnOn();
    light1.turnOn();
    light2.turnOn();
    light3.turnOn();
    sensor1.active();
    sensor2.active();
    alarm1.active();
  }
}
